import i18 from "i18next";
import { initReactI18next } from "react-i18next";

import en from "./en.json";
import zh from "./zh.json";

const resources = {
  en: {
    translation: en,
  },
  zh: {
    translation: zh,
  },
};

i18.use(initReactI18next).init({
  resources,
  lng: "en", // 设置初始化语言
});

export default i18;
